package com.itheima;
//创建int数组array,并使用简化格式进行初始化
//1000的索引编号是0,2000的索引编号是1,3000的索引编号是2,4000的索引编号是3
public class Demo01UseArray {
    public static void main(String[] args) {
        int[] array={10,20,300};
        System.out.println(array);
        System.out.println(array[0]);
        System.out.println(array[1]);
        System.out.println(array[2]);
        array[0]=100;
        array[1]=200;
        array[2]=3000;
        System.out.println(array[0]+" "+array[1]+" "+array[2]);
        int count=array.length;
        System.out.println(count);
        System.out.println(array.length);
    }
}
